#ifndef NSCROLLLABEL_H
#define NSCROLLLABEL_H
#include <QtWidgets>
#include "solar/beacon/Field.h"

class NScrollLabel : public QLabel {

    Q_OBJECT

public:

    NScrollLabel(int step = 3, QWidget *parent = nullptr);

    void setAdvanceStep(int step);

    void setFont(QFont font);

    void setText(QString text);

    void setPenColor(QColor color);

    void clear();

    QString text();

protected:

    void resizeEvent(QResizeEvent *size);

    void paintEvent(QPaintEvent *event);

    void roundStep();

signals:
    void msev_etr(QPair<bool, QString>);

private:
    QMap<QString, QString> impact_str;
    QMap<QString, bool> impact_bool;
    QMap<QString, int> impact_int;
    QMap<QString, QFont> impact_font;
    QMap<QString, QColor> impact_color;
    QTimer *IdlerWheel;
    KEY_ATTRIBUTE RPLKEY;
};

#endif
